home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Performance: C vs. C++
- Date: 14 Jan 1996 11:56:26 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4dar1a$5a2@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe8.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 14, 1996 09:17:20 in article <Re: Performance: C vs. C++>,
- 'm92fra@sabik.tdb.uu.se (Fredrik Raadesand)' wrote:
-
-
- >In article <30F6BAAC.12B5@iastate.edu> you wrote:
-
- >Although my objetive was to compare DOS to Linux and not to
- >compare the compilers and the results I guess shows Linux to be superior
- >to DOS, but however I thought you c-freaks might be interested anyway :)
- >)
- >
- >Test 1. A simple integration using simpsons algoritm, uses double
- >types.(float)
- >DOS/BCC Linux/GCC
- >Exec.time: 17.6 sec 10.0 sec
- >
- >Test 2. A simple loop just counting up a long int counter.(no float here)
- >DOS/BCC Linux/GCC
- >Exec.time: 12.4 sec 6.6 sec
- >
- >So if you are interested in performance ? Trash DOS ! I guess running
- >DOS on 386-system is like driving a 4-cyl. car with two sparc-plugs ripped
-
- >out, it'll run but it sure is a waste of fuel.
- >
- Correct. Some time ago I did a comparison of 16 vs 32 bit runtime speed
- using the same machine and same vendor's compilers. The ratio of
- execution was about the same as your DOS/Linux comparison. The
- results were posted on this newsgroup (circa Sept 95).
-
- There's other reasons for trashing DOS. Dealing with segments and
- the like is just not worth it any more. I haven't written any new 16-bit
- code since 1993 when I moved to Windows NT. :-)
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-